switchroot: Fix regression for separately mounted /var
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 3 Jul 2018 21:41:45 +0000 (17:41 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 4 Jul 2018 16:06:38 +0000 (16:06 +0000)
commita13ea6497e91920e9d6297d14a132123a5e48b43
tree75068099df40c7b0ebe3cb1213246cb22b4fd6b2
parent8af389b758970ce73929c84315505ac8410f355b
switchroot: Fix regression for separately mounted /var

I made a logical error in #1617 which resulted in the exact *opposite*
behaviour we want when `/var` is a separate mount.

Split this out and lower the number of negations to make it more obvious
that it's correct.

Closes: #1667
Closes: #1668
Approved by: cgwalters
src/switchroot/ostree-prepare-root.c